<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>

<body>
</body>
</html>
<script type="text/javascript" src="/js/jquery-3.1.1.min.js"></script>
<script>
    $(function () {
        //模拟30000个异步请求,进行并发
        var max = 30000;
        for (var i = 1; i <= max; i++) {
            $.post({
                //请求id为1的红包
                url: "/userRedPackage/grapRedPackage.do?redPackageId=2&userId=" + i,
                success: function (result) {
                    console.log(result);
                }
            });
        }
    })
</script>